#include <stdio.h>
int main()
{
	int n = 1234;
	printf("%o\n", n);
	printf("%x\n", n);
	return 0;
}